package memo.model.service;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import memo.model.dao.MemoDao;
import memo.model.vo.MemoPagingVO;
import memo.model.vo.MemoVO;

public class MemoServiceImpl implements MemoService {
	private MemoDao memoDao;
	
	public MemoServiceImpl(MemoDao memoDao) {
		super();
		this.memoDao = memoDao;
	}
	@Override
	public MemoVO selectShowContent(MemoVO vo) throws SQLException {
		return memoDao.selectShowContent(vo);
	}

	@Override
	public String selectGetSequence() throws SQLException {
		return memoDao.selectGetSequence();
	}
	@Override
	public void insertWriteMemo(MemoVO vo) throws SQLException {
		memoDao.insertWriteMemo(vo);
	}
	@Override
	public List selectShowMemoList(int empNo) throws SQLException {
		return memoDao.selectShowMemoList(empNo);
	}
	@Override
	public List<MemoVO> selectGetContents(MemoPagingVO vo) throws SQLException {
		return memoDao.selectGetContents(vo);
	}
	@Override
	public String selectGetTotalContents() throws SQLException {
		return memoDao.selectGetTotalContents();
	}
	@Override
	public MemoVO selectShowMemo(int memoNo) throws SQLException {
		return memoDao.selectShowMemo(memoNo);
	}
	@Override
	public void updateMemo(MemoVO vo) throws SQLException {
		memoDao.updateMemo(vo);
	}
	@Override
	public void deleteMemo(int memoNo) throws SQLException {
		memoDao.deleteMemo(memoNo);
		
	}

}
